
Mesh.MshFileVersion = 1;
Mesh.MshFileVersion = 1;
h = 0.1;
// Gmsh project created on Thu Feb  7 16:26:35 2008
Point(1) = {-1,-1,-1,0.1};
Point(2) = {1,-1,-1,0.1};
Point(3) = {-1,1,-1,0.1};
Point(4) = {1,1,-1,0.1};
Line(1) = {3,1};
Line(2) = {1,2};
Line(3) = {2,4};
Line(4) = {4,3};
Line Loop(5) = {4,1,2,3};
Plane Surface(6) = {5};
Extrude {0,0,2} {
  Surface{6};
}    
Physical Line(1) = {1};
Physical Line(2) = {2};
Physical Line(3) = {3};
Physical Line(4) = {4};
Physical Surface(6) = {6};
nx = 2/h;
ny = 2/h;
nz = 2/h;
Transfinite Line {1,3} = ny + 1 Using Progression 1.0;
Transfinite Line {2,4} = nx + 1 Using Progression 1.0;
//Transfinite Line {4,6} = nz + 1 Using Progression 1.0;

Transfinite Surface {6} = {1,2,3,4};
/*Transfinite Surface {7} = {5,6,7,8};
Transfinite Surface {8} = {1,5,8,4};
*/Recombine Surface {6};
Recombine Surface {7};
Recombine Surface {8};
Transfinite Surface {6} = {3,4,2,1};
Transfinite Surface {15} = {4,5,6,3};
Surface Loop(29) = {6,-15,-19,-23,-27,-28};
Volume(30) = {29};
